package com.jevons.muffin.adapter;

import android.view.View;

import androidx.databinding.DataBindingUtil;
import androidx.databinding.ViewDataBinding;

import com.chad.library.adapter.base.BaseViewHolder;

/**
 * Copyright 2020 JxGIS
 *
 * @file BaseDataBindingHolder
 * @auth linaisheng
 * Created on 2022/4/2.
 * Description：
 */
public class BaseDataBindingHolder<BD extends ViewDataBinding> extends BaseViewHolder {

    protected BD dataBinding;

    public BaseDataBindingHolder(View view) {
        super(view);
        dataBinding = DataBindingUtil.bind(view);
    }

    public BD getDataBinding() {
        return dataBinding;
    }
}